<div class="headerbar">
	
	<h1><?php echo lang('version_history'); ?></h1>
	
	<div class="pull-right">
		<?php echo pager(site_url('settings/versions/index'), 'mdl_versions'); ?>
	</div>
	
</div>

<table class="table table-striped">

	<thead>
		<tr>
			<th><?php echo lang('date_applied'); ?></th>
			<th><?php echo lang('sql_file'); ?></th>
			<th><?php echo lang('errors'); ?></th>
		</tr>
	</thead>

	<tbody>
		<?php foreach ($versions as $version) { ?>
		<tr>
			<td><?php echo date_from_mysql($version->version_date_applied); ?></td>
			<td><?php echo $version->version_file; ?></td>
			<td><?php echo $version->version_sql_errors; ?></td>
		</tr>
		<?php } ?>
	</tbody>

</table>